/*
 * BWPatternFiltering.h
 *
 *  Created on: 22/lug/2014
 *      Author: raf
 */

#ifndef BWPatternFiltering_H_
#define BWPatternFiltering_H_

#define BLACK_LABEL 0
#define RED_LABEL 1
#define GREEN_LABEL 2

#include <opencv2/opencv.hpp>
#include <opencv/cv.h>
#include <opencv/highgui.h>
using namespace cv;

class BWPatternFiltering {
private:
	int similarityInterval;
	int threshY;
	void patternFiltering(Mat& thresh, Mat& img, Mat& result);
public:
	BWPatternFiltering(int similarityInterval);
	virtual ~BWPatternFiltering();
	void apply(Mat& img, Mat& result);

};

#endif /* BWPatternFiltering_H_ */
